<div class="listp">
	<h1>
		<a class = "title-post" href="<?php echo $this->createUrl('view', array('id' => $data->id));?>">
			<?php 
			$title = CHtml::encode(ucfirst(strtolower($data->title)));
			echo $title; ?>
			<?php 
				$userId 	= Yii::app()->user->id;
				$condition	= array('announcement_id' => $data->id, 'member_id' => $userId);
				$announcementAssign	= AnnouncementAssign::model()->findByAttributes($condition);
				if (isset($announcementAssign->view_fg) && $announcementAssign->view_fg == 0) {
					echo CHtml::image(Util::themeUrl(). "/images/icon_new.gif");
				}
			?>
		</a>
	</h1>
	<?php $this->widget('application.components.InfoPost', compact('data')); ?>
	<div class="post-preview-text">
		<?php //echo $data->description; ?>
		<?php echo CHtml::link('...đọc thêm →', array('view', 'id' => $data->id), array('title' => $title, 'class' => 'read_continous'));?>
		<a href="<?php echo $this->createUrl('view', array('id' => $data->id));?>" title="<?php echo $title; ?>"></a>
	</div>
	<hr class="hrpadding">
	<div class="hr-style1" style="margin-top: -24px;margin-bottom: 30px;">&nbsp;</div>
</div>
